<?php
/**
 * Created by PhpStorm.
 * User: FeiFan
 * Date: 2017/11/29
 * Time: 16:19
 */


/**
 * 获取随机码
 * @return string
 */
function get_rand() {
    $rand = '';
    for ($i = 0; $i < 6; $i++) {
        $rand .= chr(mt_rand(33, 126));
    }
    return $rand;
}